package com.aaa.mapper;

import com.aaa.entity.LayTreeData;
import com.aaa.entity.Menu;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface MenuMapper extends Mapper<Menu> {
    /**
     * 查询全部数据
     * @return
     * @param rid
     */
    List<Menu> findMenu(Integer rid);

    /**
     * 查询全部的树状菜单
     * @return
     */
    List<LayTreeData> findAllTreeData();

    /**
     * 查询角色的菜单id
     * @param rid
     * @return
     */
    List<Integer> findroleMenuid(Integer rid);
}
